importScripts(
  "https://g.alicdn.com/mylib/lp-workbox-cdn/3.6.3-2/workbox/workbox-sw.js"
);

workbox.setConfig({
  debug: false
});
workbox.core.setLogLevel(workbox.core.LOG_LEVELS.debug);

workbox.skipWaiting();
workbox.clientsClaim();

workbox.precaching.suppressWarnings(false);
workbox.precaching.precacheAndRoute([
  {
    url: "index.html",
    revision: "9"
  },
  {
    url: "app.css",
    revision: "10"
  },
  {
    url: "app.js",
    revision: "9"
  },
  "https://cdn.bootcss.com/react/16.8.0-alpha.1/umd/react.production.min.js",
  "https://cdn.bootcss.com/react-dom/16.8.0-alpha.1/umd/react-dom.production.min.js",
  "https://cdn.bootcss.com/babel-standalone/7.0.0-beta.3/babel.min.js"
]);

workbox.routing.registerRoute(
  /regSW\.pwa\.js/gi,
  workbox.strategies.networkOnly(),
  "GET"
);
